﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using SUCE.SERVICE.Properties;

namespace SUCE.SERVICE
{
    public partial class Config : Form
    {
        public Config()
        {
            InitializeComponent();

            txtURLGestorSuce.Text = Settings.Default.URLGestorSuce;
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            string path = txtURLGestorSuce.Text;

            if (!path.EndsWith("/"))
                path += "/";

            Settings.Default.URLGestorSuce = path;
            Settings.Default.Save();
            this.Close();
        }
    }
}
